package com.kingyun.gpsinspection.purificationservice.services.iam.innerservice;

import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.io.InputStream;

/**
 * Created by yangcs on 2016/8/7.
 */
public interface TemptasksService {

    /**
     * 删除 hbasepath
     * @param hbasepath
     * @return
     */
    int delfile(String hbasepath);
    /**
     * 加载图片
     * @param request
     * @param input
     * @return
     * @throws Exception
     */
    String[] uploadimg(HttpServletRequest request, InputStream input) throws Exception;

    String[] uploadimg(HttpServletRequest request, String filename) throws Exception;
    /**
     * 使用ueditor上传附件
     * @param request
     * @param file 文件
     * @return
     * @throws Exception
     */
    String[]  ueditorUpload(HttpServletRequest request, MultipartFile file)throws Exception;
}
